﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.Service;
using PersonalHealth.Data.Model;
using System.Data;

namespace PersonalHealth.Data.IService
{
    public interface IMeasureUserService : IService<MeasureUser>
    {

        DataSet GetLastAndInvalid();

        DataTable GetLastMeasureUserList();

        DataTable GetInvalidMeasuredUserList();

        /// <summary>
        /// 取出最近5个月的测试记录
        /// </summary>
        /// <returns></returns>
        DataSet GetMeasuredUserList();

        MeasureUser GetMeasureUserDetail(int id);

        IList<MeasureUser> GetMeasureUserDetailList<Tkey>(Func<MeasureUser, bool> expression,
         Func<MeasureUser, Tkey>[] orderby, bool[] isDescending, int pageIndex, int pageCount, out int pages, out int records);

        DataTable GetMsgTask(DateTime start, DateTime end, int userId, int pageIndex, int pageSize,out int totalRecords);
    }
}
